<admintpl file="header" />


<link href="__TMPL__Public/assets/css/infomation.css" rel="stylesheet" />
</head>
<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('ConstructionCommand/gcrestart')}">工程复工令管理</a></li>
            <li class="active"><a href="{:U('ConstructionCommand/gcrestart_add')}">新增工程复工令</a></li>
        </ul>
        <form method="post" class="form-horizontal form-inline tg" action="{:U('ConstructionCommand/gcrestart_add_post')}">
            <section class="tab-pane active fade in" id="access">

                <div class="row">
                    <div class="col-xs-12 col-md-12 col-lg-12">
                        <div class="panel panel-info">
							<input type="hidden" name="command_type" value="3" />
                            <div class="panel-body">
                                <div class="row tg-header">
                                    <div class="col-md-12 text-center">
                                        <h3>工程复工令</h3>
                                        <hr />
                                    </div>
                                    <div class="col-md-12">
                                        <p class="tg-to"><b>工程名称:</b><input type="text" class="input-xt input-deptname" value="{$job_name}" /></p>
                                        <p class="pull-right tg-serialnum"><b>编号:</b><input class="input-xt" name="code" required /></p>
                                    </div>
                                </div>
                                <div class="well">
                                    <p>致:<input type="text" class="input-xt input-deptname" name="executing_department_management" required />(施工项目经理部)</p>
                                    <p class="indent20">
                                        我方发出的编号为<input type="text" class="input-xt input-deptname" name="construction_pause_command_no" required />《工程暂停令》，要求暂停施工的<input type="text" class="input-xt input-deptname" name="construction_position" required />部门（工序），经查已具备复工条件。经建设单位同意，先通知你方于<input type="text" class="js-date input-xt" name="begin_construction_time" value="{$result.begin_construction_time}" required />日<select name="hour" required ><php>for($i=1; $i<=24; $i++){echo "<option value='".$i."'".($i == $result['hour'] ? "selected" :"").">".$i."</option>";}</php></select>时起恢复施工。
                                    </p>
                                    <p>
                                        附件
                                        <div class="controls">
                                            <a class="btn upBtn btn-primary" href="javascript:void(0);">上传</a>
                                            <input type="file" id="upFile" name="upFile" style="display:none" />
                                        </div>
                                    </p>

                                    <div class="signature">
                                        <p>项目监理机构(盖章)</p>
                                        <p>总监理工程师(签字、加盖执业印章)</p>
                                    </div>
                                    <p class="signature-date">
                                        <input type="text" class="js-date input-xt" name="publish_time" value="<php>echo date('Y-m-d');</php>" required />
                                    </p>

                                </div>
                                <p class="text-muted tg-note">
                                    <small>注：本表一式三份，项目监理机构、建设单位、施工单位各一份。</small>
                                </p>
                                <div class="form-actions">
                                    <button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
                                    <a class="btn btn-default" href="javascript:history.back(-1);">{:L('BACK')}</a>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>

            </section>
        </form>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
    <script type="text/javascript">
		$(document).ready(function(e) {
			// 选择图片
			$(document).on("click", ".upBtn", function(e) {
				$("#upFile").click();
			});
			// 文件选择器change事件
			$("#upFile").on("change", function(){
				UploadFile("{:U('ConstructionCommand/upload')}", "gcrestart");
			});
			$(document).on("click", ".delFile", function(){
				if($(this).attr("value") != undefined){
					delFile("{:U('ConstructionCommand/delFile')}", $(this).attr("value"), $(this))
				} else {
					$(this).closest("div").remove();
				}
			});
		});
	</script>
</body>
</html>